# coding=utf-8
from Page.base_page import BasePage
from Page.process_agent import ProcessAgent
from Page.process_search import ProcessSearch


class WorkflowBackend(BasePage):

    # 从工作流后台进行操作进入某个页面
    def goto_process_search(self):
        self.click('linktext', '流程查询')
        return ProcessSearch(self.driver)

    def goto_process_agent(self):
        self.click('linktext', '流程代理')
        return ProcessAgent(self.driver)
